<html>
<head><meta charset="utf-8"><title>local cache · t-cargo · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/index.html">t-cargo</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/local.20cache.html">local cache</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="220930331"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/246057-t-cargo/topic/local%20cache/near/220930331" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> devsnek <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/local.20cache.html#220930331">(Dec 25 2020 at 18:00)</a>:</h4>
<p>I'd like to add an option which stores all the downloaded packages and whatnot in <code>target/.cargo</code> or similar. I know that you can override CARGO_HOME but that seems to break the resolution of the config file, which is not ideal. I got as far as modifying <code>src/cargo/util/config/mod.rs</code> before realizing that the current target directory is not available... is there any way to access it consistently from the config or would this require a bunch of refactoring?</p>



<a name="221022283"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/246057-t-cargo/topic/local%20cache/near/221022283" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> devsnek <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/local.20cache.html#221022283">(Dec 27 2020 at 20:34)</a>:</h4>
<p><span class="user-mention" data-user-id="120518">@Eric Huss</span> just noticing you seem to be active on gh... any pointers?</p>



<a name="221022410"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/246057-t-cargo/topic/local%20cache/near/221022410" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Eric Huss <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/local.20cache.html#221022410">(Dec 27 2020 at 20:39)</a>:</h4>
<p><span class="user-mention" data-user-id="219805">@devsnek</span> I'm not sure if this is a feature we would actually want. Usually if you want to propose a feature, it would be good to discuss it on the issue tracker or on internals. There is a pretty big queue of things, so I can't promise that we would be able to respond to it, but if you write a proposal I can try to bring it up during a team meeting.</p>



<a name="221022957"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/246057-t-cargo/topic/local%20cache/near/221022957" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> devsnek <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/local.20cache.html#221022957">(Dec 27 2020 at 20:55)</a>:</h4>
<p>opened <a href="https://github.com/rust-lang/cargo/issues/9021">https://github.com/rust-lang/cargo/issues/9021</a></p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>